<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String pathPrefix = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ pathPrefix + "/";
	StringBuffer strBuf = new StringBuffer();
	strBuf.append("<div class=\"dtree\">").append("\n");
		strBuf.append("	<script type=\"text/javascript\">").append("\n");
		strBuf.append("		d = new dTree('d');").append("\n");
		strBuf.append("d.add('0','-1','全国','");
		strBuf.append(pathPrefix);
		strBuf.append("/com/catt/dms/systemSet/district/getDistrictListById.action?districtId=0','全国','listFrame','','',false);").append("\n");
		strBuf.append("d.add('22','0','河北省','/SSH2/jsp/main/main.jsp','河北省','main','','',false);");
		strBuf.append("d.add('23','22','石家庄市','/jsgg/com/catt/dms/systemSet/district/getDistrictListById.action?districtId=23','石家庄市','listFrame','','',false);");
		strBuf.append("d.add('42','22','唐山市','/jsgg/com/catt/dms/systemSet/district/getDistrictListById.action?districtId=42','唐山市','listFrame','','',false);");
		strBuf.append("d.add('54','22','秦皇岛市','/jsgg/com/catt/dms/systemSet/district/getDistrictListById.action?districtId=54','秦皇岛市','listFrame','','',false);");
		strBuf.append("d.add('178','0','山西省','/jsgg/com/catt/dms/systemSet/district/getDistrictListById.action?districtId=178','山西省','listFrame','','',false);");
		strBuf.append("d.add('184','178','大同市','/jsgg/com/catt/dms/systemSet/district/getDistrictListById.action?districtId=184','大同市','listFrame','','',false);");
		strBuf.append("d.add('193','178','阳泉市','/jsgg/com/catt/dms/systemSet/district/getDistrictListById.action?districtId=193','阳泉市','listFrame','','',false);");
		strBuf.append("		document.write(d);").append("\n");
		strBuf.append("	</script>").append("\n");
		strBuf.append("</div>").append("\n");		
	request.setAttribute("treeStr",strBuf);			
%>
<html>
	<head>
		<title></title>
		<base href="<%=basePath%>" />
		<link rel="StyleSheet" href="<%=pathPrefix%>/css/dtree/dtree.css"
			type="text/css" />
		<script type="text/javascript" src="<%=pathPrefix%>/js/dtree/dtree.js"></script>
	</head>	 
	<body>
		<table width="964" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td valign="top" width="170">
					<table border="0" cellpadding="0" cellspacing="0" width="166">
						<tr>
							<td width="166" height="450" valign="top">
								<table border="0" cellpadding="0" cellspacing="0" width="170"
									height="450">
									<tr>
										<td colspan="2" height="10"></td>
									</tr>
									<tr>
										<td width="14"></td>
										<td width="156" valign="top"><%=request.getAttribute("treeStr")%></td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</body>
</html>
